package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName exam_exam
 */
@TableName(value ="exam_exam")
public class ExamExam implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 考试名称
     */
    private String name;

    /**
     * 试卷id
     */
    private Integer paper;

    /**
     * 开始时间
     */
    private String starttime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 考试名称
     */
    public String getName() {
        return name;
    }

    /**
     * 考试名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 试卷id
     */
    public Integer getPaper() {
        return paper;
    }

    /**
     * 试卷id
     */
    public void setPaper(Integer paper) {
        this.paper = paper;
    }

    /**
     * 开始时间
     */
    public String getStarttime() {
        return starttime;
    }

    /**
     * 开始时间
     */
    public void setStarttime(String starttime) {
        this.starttime = starttime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ExamExam other = (ExamExam) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getPaper() == null ? other.getPaper() == null : this.getPaper().equals(other.getPaper()))
            && (this.getStarttime() == null ? other.getStarttime() == null : this.getStarttime().equals(other.getStarttime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getPaper() == null) ? 0 : getPaper().hashCode());
        result = prime * result + ((getStarttime() == null) ? 0 : getStarttime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", paper=").append(paper);
        sb.append(", starttime=").append(starttime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}